home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 17 / Palmtops_numero17.iso / pc / Magazine / Programmation Palm / Essai1.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-03  |  325 b   |  20 lines

  1. // Essai1
  2. include "../CControls/Ccontrols.c"
  3.  
  4. main() {
  5.   Chandle hb1;
  6.   int e;
  7.   hb1=Cbutton(60,70,40,20,1,3);
  8.   Csetcontent(hb1,"Clic !");
  9.   
  10.   graph_on();
  11.   title("Essai1");
  12.   Cdraw(hb1);
  13.   while (1) {
  14.     e=event(1);
  15.     if (Cevent(hb1,e)) {
  16.       Csetcontent(hb1,"Hit !");
  17.       Cdraw(hb1);
  18.     }
  19.   }
  20. }